import { createApp } from 'vue'
import './style.css'
import 'bootstrap/dist/css/bootstrap.css'
import App from './App.vue'
//导入路由模块
import router from './router.js'

//导入组件
import GobalComponent from './components/GobalComponent.vue'
// 注册全局组件
//vue实例名称.component('组件名称', 需要被注册的组件)

// createApp(App).mount('#app')
const app=createApp(App)  //创建vue实例
app.component('GobalComponent',GobalComponent)
//注册路由模块
app.use(router)
app.mount('#app')
